/**
 * TravelController
 *
 * @author guojunlong@tuniu.com (Allen Guo)
 * @copyright Copyright &copy; 2006-2016 Tuniu.com
 */
'use strict';

let common = require('@tuniu/light-common');

module.exports = class {
    __construct() {
        this.rs = this.ctx.getService('tuniu.common.RemoteService');
    }

    * direct() {
        let resp = yield this.rs.requestP('GET_CITY_LIST');
        this.res.htmlRender({content: common.utils.dump(resp)});
    }

    * tsp() {
        let resp = yield this.rs.requestP('TBS.city.CityContoller.queryBookingCity');
        this.res.htmlRender({content: common.utils.dump(resp)});
    }
}
